.Net

[Solved] Unknown server tag ‘asp:Chart’

[Solved] Unknown server tag ‘asp:Chart’, someone asked me to explain?

While running the application I had faced error message Unknown server tag ‘asp:Chart’ . This problem was resolved by registering the assembly in design page of flowchart.aspx.

Problem:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 

Parser Error Message: Unknown server tag 'asp:Chart'.

Source Error:
Line 5: <asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
Line 6:
Line 7: <asp:Chart ID="Chart2" runat="server" Width="350">
Line 8: <Titles>
Line 9: <asp:Title Text="website visitors">
 Solved:
<%@ Register Assembly="System.Web.DataVisualization,Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

Post your comments / questions